<!doctype html>
<html>
<head>
    <meta charset="utf-8"/>
</head>
<body>
<input id="t" value="124">
<script>
    document.getElementById('t').selectionStart=2;
</script>
</body>
</html>